home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / mxcode / jmp / modplay.h < prev    next >
C/C++ Source or Header  |  1994-01-29  |  790b  |  46 lines

  1. extern int    modload(char * filename);
  2. extern int    modinit(int frequency);
  3. extern int    modplay(void);
  4. extern int    modpoll(void);
  5. extern int    modstop(void);
  6.  
  7. typedef unsigned char    uchar;
  8. typedef unsigned int    uint;
  9. typedef unsigned long    ulong;
  10.  
  11. typedef struct {
  12.     uchar    name[22];
  13.     uint    length;
  14.     uchar    finetune;
  15.     uchar    volume;
  16.     uint    reppnt;
  17.     uint    replen;
  18. } sample;
  19.  
  20. typedef struct {
  21.     uchar    sampperiod;
  22.     uchar    period;
  23.     uchar    sampeffect;
  24.     uchar    effect;
  25. } note;
  26.  
  27. typedef struct {
  28.     uchar    title[20];
  29.     sample    samples[31];
  30.     uchar    length;
  31.     uchar    protracker;
  32.     uchar    patterntable[128];
  33.     uchar    signature[4];
  34. } module;
  35.  
  36. typedef struct {
  37.     uchar *    sampdata;
  38.     uint    sampnum;
  39.     uint    length;
  40.     uint    reppnt;
  41.     uint    replen;
  42.     uint    period;
  43.     uchar    volume;
  44.     ulong    ticks;
  45. } channel;
  46.